import request from '@/utils/request'

// 查询仓库列表
export function listSysWarehouse(query) {
  return request({
    url: '/system/SysWarehouse/list',
    method: 'get',
    params: query
  })
}

// 查询仓库详细
export function getSysWarehouse(warehouseId) {
  return request({
    url: '/system/SysWarehouse/' + warehouseId,
    method: 'get'
  })
}

// 新增仓库
export function addSysWarehouse(data) {
  return request({
    url: '/system/SysWarehouse',
    method: 'post',
    data: data
  })
}

// 修改仓库
export function updateSysWarehouse(data) {
  return request({
    url: '/system/SysWarehouse',
    method: 'put',
    data: data
  })
}

// 删除仓库
export function delSysWarehouse(warehouseId) {
  return request({
    url: '/system/SysWarehouse/' + warehouseId,
    method: 'delete'
  })
}
